﻿using strange.extensions.command.impl;
using strange.extensions.dispatcher.eventdispatcher.api;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 修改倍数的命令类
/// </summary>
public class ChangeMutiplyCommand : EventCommand
{
    [Inject]
    public IntegrationModel IntegrationModel { get; set; }
    /// <summary>
    /// 有命令派发就会执行该方法
    /// </summary>
    public override void Execute()
    {
        int multiple = (int)evt.data;
        IntegrationModel.Multiply = multiple;
        Tools.CreateUIPanel(PanelType.BackGroudPanel);
        Tools.CreateUIPanel(PanelType.CharacterPanel);
        Tools.CreateUIPanel(PanelType.InteractionPanel);
    }
}
